﻿//http://wiki.jrj.com.cn/pages/viewpage.action?pageId=95617391
//http://quote.stockstar.com/stock/datajournal.htm  线上地址

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NewsComp;

namespace DataIssue
{
    public partial class Default : System.Web.UI.Page
    {
        /// <summary>
        /// 头部的指数框
        /// </summary>
        protected string IndexDataString = string.Empty;

        protected string MarketScaleString = string.Empty;

        protected string IndustryIndexString = string.Empty;

        protected string MarketAWinStocks = string.Empty;

        protected string MarketBWinStocks = string.Empty;

        protected string CashFlowStringA = string.Empty;

        protected string CashFlowStringB = string.Empty;

        protected string CashFlowStringC = string.Empty;

        protected string LongHuBangA = string.Empty;

        protected string LongHuBangB = string.Empty;

        protected string LongHuBangC = string.Empty;

        protected string CommentStringA = string.Empty;

        protected string CommentStringB = string.Empty;

        protected string CommentStringC = string.Empty;

        protected string TopNews = string.Empty;

        protected string[] PicIndexs = new string[3];

        protected void Page_Load(object sender, EventArgs e)
        {
            Html.PageSourceHtml html = new Html.PageSourceHtml();
            IndexDataString = html.GetIndexDataString();
            MarketScaleString = html.GetMarketScaleString();
            IndustryIndexString = html.GetIndustryIndexString();
            MarketAWinStocks = html.GetMarketStocksString(1);
            MarketBWinStocks = html.GetMarketStocksString(2);
            CashFlowStringA = html.GetCashProfitFlowString("A");
            CashFlowStringB = html.GetCashProfitFlowString("B");
            CashFlowStringC = html.GetCashProfitFlowString("C");

            LongHuBangA = html.GetLongHuBangString("A");
            LongHuBangB = html.GetLongHuBangString("B");
            LongHuBangC = html.GetLongHuBangString("C");

            CommentStringA = html.GetQianGuQianPingString();
            CommentStringB = html.GetTouZiPingJiString();
            CommentStringC = html.GetYingLiYuCeString();

            TopNews = html.GetTopNewsString();

            PicIndexs = html.GetPicIndexString();
        }



    }
}